<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%   String path = request.getContextPath();   
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
	String openId = (String)request.getSession().getAttribute("openId");
	if(openId==null || openId.equals("")){
	 	openId = (String)request.getParameter("openId");
	 	request.getSession().setAttribute("openId", request.getParameter("openId"));	
	}
	 
%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,,user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">
    <title>最新动态</title>
    <link href="/bootstrapDemo/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="/bootstrapDemo/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
    <script src="/bootstrapDemo/js/jquery.js"></script>
    <script src="/bootstrapDemo/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript">
	function toPhoto(id){
		location.href = "<%=basePath%>/photo/lookWPhotoPre.action?photog.id="+id;	
	}
</script>
  </head>
  
<body >
<img src="/wpages/images/top-ca.jpg" style="width: 100%;height: 70px;">
	<!-- 这里是头部的轮播插件 end-->
<div class="container" style="margin: 10px; padding: 0px;" >
	<s:iterator value="photogList" id="photog" status="statu">
	<div class="panel panel-danger">
		<div class="media" onclick="toPhoto('<s:property value="#photog.id"/>');">
		   <a class="pull-left" href="#">
		    <img class="img-rounded" src="/wpages/images/photo/01.gif" style="width: 140px;height: 110px;">
		   </a>
		  <div class="media-body">
			    <h4 class="media-heading"><s:property value="#photog.GName"/></h4>
			    <s:property value="#photog.GDescribe"/>
		  </div>
	   </div>
	</div>
	</s:iterator>
	<ul class="pager" >
	  <li ><a href="/photo/getWPhotoGroupList.action?currentPage=${pageData.currentPage-1}" ><font color="black">上一页</font></a></li>
	  <li><a href="/photo/getWPhotoGroupList.action?currentPage=${pageData.currentPage-1}"><font color="black">下一页</font></a></li>
	</ul>
</div>
<div id="footer" style="height: 40px; text-align: center;">
 	<p>版权所有@功夫梦·中国 2014-2016</p>
 </div>

<div style="height: 30px;"></div>
<!-- 这里是固定在底部的导航条 start-->
<jsp:include page="/wpages/bottom.jsp"></jsp:include>
	<!-- 这里是固定在底部的导航条 end-->

</body>
</html>